﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TTCN_QLDiemC3.MyUserControl.UCHienThi;
using BLL;

namespace TTCN_QLDiemC3.MyUserControl.UCMenu
{
    public partial class UCChucNangMon : UserControl
    {
        public UCChucNangMon(String tengv, String quyen)
        {
            InitializeComponent();
            lblHoTen.Text = tengv;
            lblQuyenHan.Text = quyen;
        }

        private void btnThemMon_Click(object sender, EventArgs e)
        {
            UCThemMon ucchucnanggv = new UCThemMon();            
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang");            
        }

        private void btnDanhSachMon_Click(object sender, EventArgs e)
        {
            UCDanhSachMon ucchucnanggv = new UCDanhSachMon();
            Form form = this.ParentForm;
            ControlAccess.ShowConTrol(form, ucchucnanggv, "grbHienThiChucNang"); 
        }
    }
}
